import java.util.Scanner;

public class test3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //多组输入
        while(scanner.hasNextInt()){
            int age = scanner.nextInt();
            System.out.println(age);
        }
    }
    public static void main4(String[] args) {
        //输入与输出
//        System.out.println("输出且换行");
//        System.out.print("输出不换行");
//        System.out.printf("%d",10);
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的年龄：");        //读入一个整数
        int age = scanner.nextInt();
        System.out.println(age);
        scanner.nextLine();                          //清空缓冲区，消除了下面读回车的影响
        System.out.println("请输入你的名字：");         //注意：这里会读到上面的回车
        String name = scanner.nextLine();           //读入一行,读到回车结束         next()是遇到空格结束
        System.out.println(name);
        System.out.println("请输入你的工资");
        float salary = scanner.nextFloat();
        System.out.println(salary);
        scanner.close();                        //关闭输入，可以认为scan是一个资源
    }
    public static void main3(String[] args) {
//        int i = 0;
//        int ret = 1;
//        //计算5的阶乘
//        for(i = 1;i <= 5;i++){
//            ret*=i;
//        }
//        System.out.println(ret);
//        int i = 1;
//        int sum = 0;
//        //求1到100的和
//        while(i<=100)
//        {
//           sum += i;
//           i++;
//        }
//        System.out.println(sum);
//       int i = 0;
//       int ret = 1;
//       int sum = 0;
//        //计算5的阶乘
//        for(i = 1;i <= 5;i++){
//            ret*=i;
//            //求和
//            sum+=ret;
//        }
//        System.out.println(ret);
//        System.out.println(sum);
        int i =100;
        while(i<=200) {
            if(i % 3==0 && i % 4==0){
                System.out.println(i);
                i++;
                continue;
            }
            else {
                i++;
                continue;
            }
        }
    }
    public static void main2(String[] args) {
        int day = 1;
        //输出日期
        switch (day)
        {
            case 1:
                System.out.println("Monday");
                break;
            case 2:
                System.out.println("Tuesday");
                break;
            case 3:
                System.out.println("Wednesday");
                break;
            case 4:
                System.out.println("Thursday");
                break;
            case 5:
                System.out.println("Friday");
                break;
            case 6:
                System.out.println("Saturday");
                break;
            case 7:
                System.out.println("Sunday");
                break;
        }
    }
    public static void main1(String[] args) {
        //初始化
        int year = 0;
        //判断是否是闰年
        for( year = 1000;year <= 2000;year++){
            if(year % 4==0 && year % 100!=0||year % 400 ==0){
                System.out.printf(year+"是闰年");
            }
            else {
                System.out.printf(year+"不是闰年");
            }
        }
    }
}
